
let gettime = () => {
    let date = new Date();
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let date1 = date.getDate();

    let h = date.getHours();
    let m = date.getMinutes();
    if (m >= 10) {

    } else {
        m = "0" + m
    }
    let s = date.getSeconds();
    if (s >= 10) {

    } else {
        s = "0" + s
    }

    return year + "年" + month + "月" + date1 + "日" + h + "时" + m + "分" + s + "秒"
}


let jj = function (date1) {
    let date2 = new Date().getTime();
    let a = ""
    let xiangcha = Math.abs(date2 - date1);
    let datee = parseInt(xiangcha / 1000 / 60 / 60 / 24)
    let h = parseInt((xiangcha / 1000 / 60 / 60) % 24)
    let m = parseInt((xiangcha / 1000 / 60) % 60)
    let s = parseInt((xiangcha / 1000) % 60)
    return (datee + "天 " + h + "小时" + m + "分钟" + s + "秒")
}